Fix recovering from possible decompression error. Since
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 26 Aug 2013 05:32:47 +0000 (09:32 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 26 Aug 2013 05:32:47 +0000 (09:32 +0400)
commit7a8128b3553b88688e820544278b6c3993bb00e7
treea11e03d28bdb9bcff35026277e939f94624db655
parentcc855a93264fbce92e1805ae74b0945e81f92785
Fix recovering from possible decompression error.  Since
insert_from_gap doesn't always move point, we can't use PT as
the position where the partially decompressed data ends, and
should count how may bytes was produced so far.
* decompress.c (struct decompress_unwind_data): Add nbytes member.
(unwind_decompress): Really delete partially uncompressed data.
(Fzlib_decompress_region): Take decompressed data size into account.
src/ChangeLog
src/decompress.c